package com.opencloud.ywt.provider.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.opencloud.common.model.PageParams;
import com.opencloud.ywt.client.model.entity.*;

import java.util.List;

public interface BhyfBdbService {
    List<BhyfBdbLevelcheck> findLevelCheckList(PageParams pageParams);

    List<BhyfBdbRule> findRuleList(int gradenum,int angletype);

    BhyfBdbLevelcheck addLevelcheck(BhyfBdbLevelcheck entiy);

    BhyfBdbLevelcheck updateLevelcheck(BhyfBdbLevelcheck entiy);

    BhyfBdbLevelcheck findLevelCheckById(Integer id);

    BhyfBdbLevelcheck isExistCheckLevel(Integer perosnid,Integer ruletype,String checkmonth,Integer angletype);

    BhyfBdbRule addBhyfBdbRule(BhyfBdbRule entiy);

    List<BhyfBdbRuleObject> findRuleObjectList(int angletype, int ruletype);

    List<BhyfBdbLearnCheck> findLearnCheckList(PageParams pageParams);

    BhyfBdbLearnCheck addLearncheck(BhyfBdbLearnCheck entiy);

    BhyfBdbLearnCheck updateLearncheck(BhyfBdbLearnCheck entiy);

    BhyfBdbLearnCheck isExistLearnCheck(Integer perosnid,String checkmonth);

    BhyfBdbLearnCheck findLearnCheckById(Integer id);

    BhyfBdbObservDetail updateBhyfBdbObservDetail(BhyfBdbObservDetail entiy);

    BhyfBdbObservDetail getBhyfBdbObservDetailById(Integer id);

    BhyfBdbObservDetail addBhyfBdbObservDetail(BhyfBdbObservDetail entiy);

    List<BhyfBdbObservDetail> getBhyfBdbObservDetailByObservId(Integer observid);

    int deleteBhyfBdbObservDetailByObservId(Integer observid);

    List<BhyfBdbEduProject> findBhyfBdbEduProjectList(PageParams pageParams);

    BhyfBdbEduProject findBhyfBdbEduProjectById(Integer id);

    BhyfBdbEduProject updateBhyfBdbEduProject(BhyfBdbEduProject entiy);

    BhyfBdbEduProject addBhyfBdbEduProject(BhyfBdbEduProject entiy);

    BhyfBflRaspiInfo addBhyfBflRaspiInfo(BhyfBflRaspiInfo entiy);

    BhyfBflRaspiInfo updateBhyfBflRaspiInfo(BhyfBflRaspiInfo entiy);

    List<BhyfBflRaspiInfo> findBhyfBflRaspiInfoList(PageParams pageParams);

    BhyfBflRaspiBind addBhyfBflRaspiBind(BhyfBflRaspiBind entiy);

    BhyfBflRaspiBind deleteBhyfBflRaspiBind(BhyfBflRaspiBind entiy);

    List<BhyfBflRaspiBind> getBhyfBflRaspiBindByClassId(Integer classid);

    BhyfBflRaspiInfo getBhyfBflRaspiInfoById(Integer id);

    BhyfBflRaspiInfo getBhyfBflRaspiInfoByMac(String mac);

    List<BhyfBdbEnvData> getBdbEnvDataByClass(Integer gid,Integer classid);

    List<BhyfBdbEnvData> getLastBdbEnvDataByClass(Integer gid,Integer classid);

    List<BhyfBdbQuestion> getBhyfBdbQuestionByPerson(Integer personid,String checkdate);

    BhyfBdbQuestion addBhyfBdbQuestion(BhyfBdbQuestion entiy);

    BhyfBdbHealthCode addBdbHealthCode(BhyfBdbHealthCode entiy);

    List<BhyfBdbHealthCode> getBhyfBdbHealthCodeByPerson(Integer personid,String checkdate);

    List<BhyfBdbTodayScore> getBdbTodayScoreByPerson(Integer personid,String checkdate);

    BhyfBdbTodayScore addBdbTodayScore(BhyfBdbTodayScore entiy);

    List<BhyfBdbTemp> getBdbTempByPerson(String mac,String checkdate);

    List<BhyfBdbWarningTemp> getBdbWarningTempByPerson(String mac,String checkdate);

    List<BhyfBdbRecipe> getBdbRecipeList(Integer gid,String starttime,String endtime);

    List<BhyfXhbSportPersonComment> findPersonSportList(Integer gid, Integer personid,String starttime,String endtime);

    List<BhyfXhbSportClass> findClassSportList(Integer gid,Integer classid,String starttime,String endtime);

    List<BhyfXhbSportPersonCommentResult> findGradeSportList(Integer gid, Integer gradenum,String starttime,String endtime);

    List<BhyfBdbSportPerson> getBhyfBdbSportPersonList(String mac,String checkdate);

    List<BhyfBdbSleepPerson> getBhyfBdbSleepPersonList(String mac,String checkdate);

    List<BhyfBdbBaseStation> getBhyfBdbBaseStationList(Integer gid, Integer classid,String mac);

    Integer deleteBhyfBdbBaseStation(String mac);

    BhyfBdbBaseStation addBhyfBdbBaseStation(BhyfBdbBaseStation entiy);

    List<BhyfBdbQuestion> getBhyfBdbQuestionByClass(Integer gid,Integer gradenum,Integer classid,String checkdate);

    List<BhyfBdbHealthCode> getBhyfBdbHealthCodeByClass(Integer gid, Integer classid,String checkdate);

    BhyfBdbTrack addBhyfBdbTrack(BhyfBdbTrack entiy);

    List<BhyfBdbTrack> getBhyfBdbTrackList(Integer gid, Integer classid,Integer tracktype,String trackdate);

    List<BhyfBdbTemp> getLastTempListByMac(String mac,String starttime,String endtime);

    List<BhyfBdbTemp> getLastTempListByClass(Integer classid,String starttime,String endtime);

    BhyfBdbPreTemp addBhyfBdbPreTemp(BhyfBdbPreTemp entiy);

    List<BhyfBdbPreTemp> getLastPreTempListByMac(String mac,String starttime,String endtime);

    List<BhyfBdbPreTemp> getLastPreTempListByClass(Integer classid,String starttime,String endtime);

    List<BhyfBdbWarningTemp> getBdbWarningTempByClass(Integer classid,String starttime,String endtime);

    List<BhyfXhbSleepPerson> findPersonSleepList(Integer gid,String starttime,String endtime);

    List<BhyfXhbSleepClass> findClassSleepList(Integer gid,Integer gradenum, Integer classid,String starttime,String endtime);

    BhyfBdbWarningTemp addBhyfBdbWarningTemp(BhyfBdbWarningTemp entiy);

    List<BhyfBdbClassCount> getHealthcodeCountByClass(Integer gid,String checkdate);

    List<BhyfBdbClassCount> getPreTempCheckCountByClass(Integer gid,String starttime,String endtime);

    List<BhyfBdbClassCount> getTempCheckCountByClass(Integer gid,String starttime,String endtime);

    List<BhyfBdbClassCount> getWarnTempCheckCountByClass(Integer gid,String starttime,String endtime);

    List<BhyfBdbClassCount> getTrackCountByClass(Integer gid,Integer tracktype,String checkdate);

    List<BhyfStudent> getUnWearStudentList(Integer gid,Integer classid,String starttime,String endtime);

    List<BhyfBdbBadSleep> getBadSleepList(Integer gid,Integer classid,Integer personid,String starttime,String endtime);

    List<BhyfBdbMostTemp> getMostTempListByClass(Integer gid,Integer classid,String starttime,String endtime,Integer isbad);

    List<BhyfBdbWarningTemp> getBdbWarningTempByGradenum(Integer gid,Integer gradenum,Integer classid,String starttime,String endtime);

    List<BhyfBdbTemp> getLastTempListByGrade(Integer gid,Integer gradenum,Integer classid,String starttime,String endtime);

    BhyfBdbBaseStation updateBhyfBdbBaseStation(BhyfBdbBaseStation entiy);

    BhyfBdbBaseStation getBhyfBdbBaseStationById(Integer id);

    List<BhyfBdbSportPerson> getSportPersonListByClass(Integer gid,Integer classid,String sportdate);

    List<BhyfBdbTemp> getGardenBadTempWatchList(Integer gid,Integer gradenum,Integer classid,String starttime,String endtime);

    List<BhyfBdbDayTempCount> getGardenDayTempCount(Integer gid,String starttime,String endtime);

}
